package cn.wolfcode.luowowo.flight.service;

import cn.wolfcode.luowowo.flight.domain.FlightTicket;

import java.util.List;

public interface IFlightTicketService {
    /**
     * 预订机票
     * @param ticket
     * @return
     */
    FlightTicket saveOrUpdate(FlightTicket ticket);

    /**
     * 查询该用户的机票订单
     * @param uid 用户id
     * @return
             */
    List<FlightTicket> queryByUserinfoId(Long uid);

    /**
     * 查询单个飞机票的信息
     * @param tid
     * @return
     */
    FlightTicket queryById(Long tid);
}
